home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smcheckbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-01-07  |  747 b   |  37 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SMCHECKBOX_H
  8. #define SMCHECKBOX_H
  9.  
  10. #include <QCheckBox>
  11.  
  12. class SMCheckBox : public QCheckBox
  13. {
  14.     Q_OBJECT
  15. public:
  16.     SMCheckBox(QWidget *parent);
  17.     ~SMCheckBox() {};
  18.  
  19.     void setChecked(bool);
  20.     void setChecked(bool val, bool isParentVal);
  21.  
  22.     void setParentValue(bool);
  23.  
  24.     bool useParentValue();
  25.  
  26. private:
  27.     bool   hasParent_;
  28.     bool   useParentValue_;
  29.     bool   pValue_;
  30.     void setFont(bool wantBold);
  31.  
  32. private slots:
  33.     void slotStateChanged(int);
  34. };
  35.  
  36. #endif
  37.